CSSMedia

data class CSSMedia(text: String, source: String, sourceURL: String?, range: SourceRange?, styleSheetId: StyleSheetId?, mediaList: List<MediaQuery>?)

CSS media rule descriptor.

Constructors

CSSMedia
Link copied to clipboard
fun CSSMedia(text: String, source: String, sourceURL: String? = null, range: SourceRange? = null, styleSheetId: StyleSheetId? = null, mediaList: List<MediaQuery>? = null)

Properties

mediaList
Link copied to clipboard
val mediaList: List<MediaQuery>? = null
Array of media queries.
range
Link copied to clipboard
val range: SourceRange? = null
The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
source
Link copied to clipboard
val source: String
Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.
sourceURL
Link copied to clipboard
val sourceURL: String? = null
URL of the document containing the media query description.
styleSheetId
Link copied to clipboard
val styleSheetId: StyleSheetId? = null
Identifier of the stylesheet containing this object (if exists).
text
Link copied to clipboard
val text: String
Media query text.

Sources

jvm source
Link copied to clipboard